﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LimaLims.Core.Entity.System
{
    /// <summary>
    /// 用户站内消息
    /// </summary>
    [Comment("用户站内消息")]
    public class SysMessage : DEntityTenant
    {
        /// <summary>
        /// 接收人ID
        /// </summary>
        [Comment("接收人ID")]
        public long ReceiveUserId { get; set; }

        /// <summary>
        /// 是否阅读
        /// </summary>
        [Comment("是否阅读")]
        public bool IsRead { get; set; } = false;

        public MessageContent MessageContent { get; set; }

        /// <summary>
        /// 消息内容ID
        /// </summary>
        [Comment("消息内容ID")]
        public long MessageContentId { get; set; }
    }
}
